<?php
/**
 *
 *
 *
 */
class Yz_Form_Element_Textarea
    extends Yz_Form_Element_Abstract
    implements Yz_Form_Element_Interface
{

    protected $name;
    protected $value = "";


    public function render(Yz_Template_Interface $template)
    {
        $class = $this->getCSSClass();
        $text = htmlspecialchars($this->value);
        $o = <<<html
            <textarea name="{$this->name}" class="{$class}">{$text}</textarea>\n
html;
        return $o;
    }

}
